package net.sudot.chess.business.dto;

import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.Instant;

/**
 * 客户信息详情
 *
 * @author tangjialin on 2018-03-19.
 */
@Getter
@Setter
@Accessors(chain = true)
public class CustomerDetailDTO implements Serializable {
    private Long id;
    /** 手机 */
    private String mobile;
    /** 昵称 */
    private String nickname;
    /** 头像 */
    private String head;
    /** 二维码路径 */
    private String qrcode;
    /** 积分 */
    private Long point;
    /** 信用分 */
    private Integer credit;
    /** 余额 */
    private BigDecimal balance;
    /** 押金 */
    private BigDecimal deposit;
    /** 会员等级 */
    private String rank;
    /** 注册时间 */
    private Instant createdDate;

    public CustomerDetailDTO() {
    }

    public CustomerDetailDTO(Long id, String nickname, String head, BigDecimal balance, Instant createdDate) {
        this.id = id;
        this.nickname = nickname;
        this.head = head;
        this.balance = balance;
        this.createdDate = createdDate;
    }

}
